//
//  FrameDemo.swift
//  SwiftUIDemo
//
//  Created by Tilt Wang on 2025/6/25.
//

import SwiftUI

struct FrameDemo: View {
    var body: some View {
        Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
            .background(Color.green)
            .frame(width: 100, height: 100, alignment: .center)
            .background(Color.blue)
            .frame(width: 200)
            .background(Color.white)
            .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
            .background(Color.red)
    }
}

#Preview {
    FrameDemo()
}
